<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>js基础-点击事件</title>
  <link rel="stylesheet" href="../css/common.css">
</head>

<body>

  <!-- 点击事件和元素内容修改 -->
  <button id="btn01">获取当前时间</button>
  <span id="spNow"></span>
  <span id="spTime"></span>

  <hr>
  <!-- 获取表单元素的输入值 -->
  <input type="text" id="txtNum1" placeholder="数值1">
  +
  <input type="text" id="txtNum2" placeholder="数值2">
  = <span id="spJia">结果</span>
  <button id="btnCompute">计算</button>

  <script src="js/h03.js"></script>
</body>

</html>